#ifndef __BSP_DELAY_H__
#define __BSP_DELAY_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "at32f435_437.h"


#define DELAY_TMR_PERIPH_CLOCK 		CRM_TMR1_PERIPH_CLOCK
#define DELAY_TMR_ID				TMR1


void bsp_delay_init(void);
void bsp_delay_us(uint32_t nus);
void bsp_delay_ms(uint16_t nms);
void bsp_delay_sec(uint16_t sec);



#ifdef __cplusplus
}
#endif

#endif /* __BSP_DELAY_H__ */

